import { ENUM_MEDIA_PREFIX, Media, Response } from "qqlx-core";
import { ViewMedia } from "qqlx-cdk";

export function jumpBlank(url: string, tabName?: string) {
  window.open(url, tabName);
}

export function jumpAccount(path?: string, target?: "_blank") {
  const URL = `https://account.qqlx.ltd${path || ""}`;
  if (target === "_blank") window.open(URL, "qqlx_account");
  else location.replace(URL);
}
